package com.xxx.yuedong.community.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxx.yuedong.community.pojo.Announce;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

/**
 * @author HG
 * @version 1.0
 **/
@Mapper
public interface AnnounceDao extends BaseMapper<Announce>{
    int insert(Announce announce);

    int deleteById(Long[] ids);

    HashMap searchAnnounceById(Long id);

    List<HashMap> searchAllAnnounce(Integer start, Integer length, String title);

    Integer searchAnnounceCount(Integer start, Integer length, String title);
}
